Advertisement
Guest User

Nowforever

a guest
Jan 30th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. #vfd -
  2. #----------------------------------------------
  3. # jdh@artichoke.org
  4. # renamed nowforever_vfd.py to /usr/bin/vfd and made it executable
  5. # Modified serial params in component to match vfd
  6. # P0-000 2 - use serial for control
  7. # P0-002 6 - use serial for freq. select
  8. # P0-007 400 - Max freq allowed, 24k for these
  9. # Hal component clips at 24k anyway
  10. # P0-008 100 - Min Freq. Mine came as 0. The spindles are not
  11. # happy running lower than this
  12. # P0-055 1 - Modbus slave address
  13. # P0-56 2 - 9600. (4 for 38.4k)
  14. # P0-57 0 - 8N1
  15. #----------------------------------------------
  16. # renamed nowforever_vfd.py to /usr/bin/vfd and made it executable
  17. #----------------------------------------------
  18. loadusr -W vfd
  19.  
  20. #Run command to VFD
  21. net spindle-on motion.spindle-on => vfd.spdvfd.run
  22.  
  23. #Fwd command
  24. net spindle-fwd motion.spindle-forward => vfd.spdvfd.forward
  25.  
  26. #Speed to send to VFD
  27. net spindle-speed-cmd motion.spindle-speed-out => vfd.spdvfd.rpmset
  28.  
  29. #Get spindle speed back from VFD - Not sure it is real
  30. net spindle-speed-in motion.spindle-speed-in <= vfd.spdvfd.outrpm
  31.  
  32. #Create at_speed pin
  33. net spindle-at-speed motion.spindle-at-speed <= vfd.spdvfd.atfreq
  34.  
  35. # Try the yoocnc probe
  36. net touch-probe parport.0.pin-15-in-not => motion.probe-input
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement